<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>学生列表</title>

    <!-- Bootstrap -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.jsdelivr.cn/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
    <script src="https://cdn.jsdelivr.cn/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
    <script src="js/jquery-3.3.1.js"></script>
    <script src="js/getParameter.js"></script>
    <script>
        $(function (){
            var id = getParameter("id");
            if (id!=undefined){
                $("#uid").val(id);
            }
        })
    </script>
</head>
<body>
<div class="col-md-6 col-md-offset-3">
<form action="user/add">
    <input type="hidden" class="form-control" id="uid" placeholder="请输入id" name="id">
    <div class="form-group">
        <label for="name">姓名</label>
        <input type="text" class="form-control" id="name" placeholder="请输入姓名" name="name">
    </div>
    <div class="radio">
        <label>
            <input type="checkbox" name="sex" value="男">男
            <input type="checkbox" name="sex" value="女">女
        </label>
    </div>
    <div class="form-group">
        <label for="telephone">电话</label>
        <input type="text" class="form-control" id="telephone" name="telephone" placeholder="请输入电话号码">
    </div>
    <div class="form-group">
        <label for="WeChat">微信</label>
        <input type="text" class="form-control" id="WeChat" name="wechat" placeholder="请输入微信账号">
    </div>
    <div class="form-group">
        <label for="address">地址</label>
        <input type="text" class="form-control" id="address" name="address" placeholder="请输入地址">
    </div>


    <input type="submit" class="btn btn-default sub"/>
</form>
</div>
</body>
</html>